﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Kingsoft MogileFS Files Manage System--添加MogileFS系统组群</title>
<link href="../site_media/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
<map name="Map" id="Map"><area shape="rect" coords="2,3,318,59" href="../index" target="_self" alt="首页" />
</map>
<table style="width: 100%; height: 60px">
    <tr>
      <td width="320"> 
        <img src="../site_media/logo.png" width="320" height="60" border="0" usemap="#Map" />        
      </td>
        <td valign="baseline">
          <ul id="nav"> 
               <li><a href="../logout/" >退出</a></li>  
               <li><a href="../admin_mgr/" >管理选项</a></li>    
               <li><a href="../addtracker/" >Tracker管理</a></li> 
               <li><a href="../addmogilefs/" id="current">添加组群</a></li> 
               <li><a href="../index" >首 页</a></li> 
        </ul> 
       </td>
     </tr>
</table>
<div align="center"><br />
<form id="form1" name="form1" method="post" action="">
  <table width="85%" border="0" cellpadding="1" cellspacing="2" class="index_table">
    <tr>
      <td height="30" colspan="2" class="title">添加MogileFS系统组群</td>
    </tr>
    <tr>
      <td width="39%" class="index_td1">名称：</td>
      <td width="61%" class="index_td2">
          <input type="text" name="mogName" id="mogName" />      </td>
    </tr>
    <tr>
      <td class="index_td1">数据库IP地址：</td>
      <td class="index_td2">
      	<input type="text" name="mogdbIP" id="mogdbIP" />      </td>
    </tr>
    <tr>
      <td class="index_td1">数据库名称：</td>
      <td class="index_td2"><input type="text" name="dbName" id="dbName" /></td>
    </tr>
    <tr>
      <td class="index_td1">数据库用户：</td>
      <td class="index_td2"><input type="text" name="dbUser" id="dbUser" /></td>
    </tr>
     <tr>
      <td class="index_td1">数据库密码：</td>
      <td class="index_td2"><input type="password" name="dbPsw" id="dbPsw" /></td>
    </tr>
     <tr>
      <td colspan="2" class="index_table"><label>
        <input type="submit" name="button" id="button" value="提交" />
      </label>
      &nbsp;&nbsp;&nbsp;&nbsp;
        <label>
         <input type="reset" name="button2" id="button2" value="重置" />
        </label></td>
      </tr>
  </table>
  {% if AddOk %}
   	<font color="red"><b>添加成功</b></font>
  {% endif %}
  {% if Empty %}
 	<font color="red" size="-1">所填写数据库必需是已存在的MogileFS数据库</font> 
   {% endif %}
  {% if WrongIP %}
	<font color="red"><b>IP错误</b></font>
  {% endif %}
  </form>
  <br>
  
  <table width="85%" border="0" cellpadding="2" cellspacing="2" class="index_table">
  <tr>
    <td colspan="2" height="30" class="title">删除MogileFS系统(注意：这是个危险的操作,将删除所属所有Tracker！)</td>
    </tr>
  <tr>
    <td width="39%" class="info_tile">名称</td>
    <td width="61%" class="info_tile">
      <label>        </label>
      <label>操作</label></td>
  </tr>
   {% for mog in Mogilefs%}
  <tr>
    <td class='info_td'>{{mog.name}}</td>
    <td class='info_td'><a href="#"><a href="../delmogilefs/?mogID={{mog.id}}" onClick="javascript:return confirm('确定要删除吗？')">删除</a></td>
  </tr>
   {% endfor%}
</table>
  
</div>
</body>
</html>
